import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register' // 支持svg图标
import globalComponent from './components'

// 引入全局样式
import '@/styles/index.scss'
import router from '@/router'
import pinia from '@/store'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(globalComponent) // 注册自定义插件注册所有自定义全局组件
app.use(pinia)
app.use(router)
app.mount('#app')

// 打印当前环境变量
// console.log('当前环境:', import.meta.env)
